<?php

/**
 * 
 */
class UI_ListView_Item extends Z_Component {

    public function __construct($titleOrText, $text="") {
	parent::__construct("<li> ", "</li>");

	if ($text == "") {
	    $this->add(new Z_Html_Text($titleOrText));
	} else {
	    $this->add(new Z_Html_Text("<h3>$titleOrText</h3><p>$text</p>"));
	}
    }

}